﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.DTO
{
    public class PriceTemplateItemPost
    {
        [Required(ErrorMessage = "{0}必填")]
        [Display(Name = "模板编号")]
        public Guid TemplateId { get; set; }

        [Required(ErrorMessage ="{0}必填")]
        [Display(Name ="产品编号")]
        public Guid ProductId { get; set; }

        /// <summary>
        /// 1：按牙位（默认）  2：按数量
        /// </summary>
        [Display(Name = "类型")]
        [Required(ErrorMessage = "{0}必填")]
        public int Type { get; set; } = 1;

        [Display(Name = "价格")]
        [Required(ErrorMessage = "{0}必填")]
        public decimal Price { get; set; }

    }
}
